package com.jh.user.repository;

import com.jh.user.pojo.FastSilverPicPath;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

/**
 * @author zhugu
 * 2018/11/29 9:06
 */
@Repository
public interface FastSilverPicPathRepository extends JpaRepository<FastSilverPicPath, Long>, JpaSpecificationExecutor<FastSilverPicPath> {
    @Query("select f from FastSilverPicPath f where f.userId =:userId")
    FastSilverPicPath queryByUserId(@Param("userId") long userId);
}
